<template>
    <div class="allout">
        <div class="goback" @click="goback()">back</div>
        <div class="textarea">{{ movename }}</div>
    </div>
</template>
<script>
export default {
    props:{
        movename:{
            type:String,
            default:'无'
        }
    },
    methods:{
        goback(){
            this.$router.back()
        }
    }
}
</script>
<style scoped>
.allout{
    width: 100%;
    height: 0.44rem;
    position: fixed;
    top: 0px;
    z-index: 100;
    background: white;
}
.goback{
    width: 30px;
    height: 30px;
    float: left;
    background: #000;
    margin: 5px;
    color: white;
    font-size: 12px;
}
.textarea{
    width: 100%;
    text-align: center;
}
</style>